/*
 * @Description: Description
 * @Author': xuqinyang'
 * @Date: 2022-11-08 16:52:22
 * @LastEditors: xuqinyang
 * @LastEditTime: 2022-11-11 14:48:05
 */
import request from '@/utils/request'

// 查询任务列表
export function queryTaskList(data) {
    return request({
        url: '/admin/wecom/moments/getlist',
        method: 'post',
        data,
    })
}

// 新增动态
export function addOrUpdateTask(data) {
    return request({
        url: '/admin/wecom/moments/addOrUpdate',
        method: 'post',
        data,
    })
}

// 编辑接口
export function editOrUpdateTask(data) {
    return request({
        url: '/admin/wecom/moments/updatemoment',
        method: 'post',
        data,
    })
}

// 详情/编辑回显
export function checkOrUpdateTask(data) {
    return request({
        url: '/admin/wecom/moments/querymomentinfo',
        method: 'post',
        data,
    })
}


// 根据moid发送朋友圈
export function sendOrUpdateTask(data) {
    return request({
        url: '/admin/wecom/moments/addmoment',
        method: 'post',
        data,
    })
}

// 删除动态
export function deleteOrUpdateTask(data) {
    return request({
        url: '/admin/wecom/moments/deleteByMoId',
        method: 'post',
        data,
    })
}

// 获取筛选客户
export function getChooseuser(data) {
    return request({
        url: '/admin/wecom/group/allList',
        method: 'get',
        data,
    })
}

// 客户标签
export function querywetaggroup(data) {
    return request({
        url: '/admin/wecom/moments/querywetaggroup',
        method: 'post',
        data,
    })
}


// 可见用户范围列表
export function querywetaglist(data) {
    return request({
        url: '/admin/wecom/moments/querywetaglist',
        method: 'post',
        data,
    })
}

// 获取可见用户标签枚举
export function querywetaggroupsmall(data) {
  return request({
    url: '/admin/wecom/moments/querywetaggroupsmall',
    method: 'post',
    data,
  })
}

//编辑筛选标签
export function querywetagcal(data) {
  return request({
    url: '/admin/wecom/moments/querywetagcal',
    method: 'post',
    data,
  })
}
